package com.parktech.sun.domain.service.sunhz;

import com.parktech.sun.domain.model.sunhz.Enterprise;
import com.parktech.sun.domain.model.sunhz.EnterpriseCategoryProduct;
import com.parktech.sun.domain.repository.Page;
import com.parktech.sun.domain.service.BaseService;

import java.util.List;

/**
 * User: Think
 * Date: 2010-12-28
 * Time: 2:51:06
 */
public interface EnterpriseService extends BaseService<Enterprise> {

    Page<Enterprise> search(String name, int category, int publishStatus, Page page);

    Page searchCategoryProduct(String name, Page page);

    void saveOrUpdateCategoryProduct(EnterpriseCategoryProduct enterpriseCategoryProduct);

    EnterpriseCategoryProduct getProductById(Long productId);

    List<EnterpriseCategoryProduct> listProductByCategory(Long category);

    Page pageBy(Page page);

    List<Enterprise> listTopRecommendEnterprise(long category, int maxResult);

    List<Enterprise> listByCategory(int categoryId);

    boolean checkMemberCode(String memberCode);
}
